
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>后台登录页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="/public/admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="/public/admin/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/public/admin/css/animate.min.css" rel="stylesheet">
    <link href="/public/admin/css/style.min.css" rel="stylesheet">
    <link href="/public/admin/css/login.min.css" rel="stylesheet">
    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if(window.top!==window.self){window.top.location=window.location};
    </script>
     <!-- jQuery -->
    <script src="/public/admin/bower_components/jquery/dist/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="/public/admin/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="/public/admin/bower_components/metisMenu/dist/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="/public/admin/dist/js/sb-admin-2.js"></script>
</head>

<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-7">
                <div class="signin-info">
                    <div class="logopanel m-b">
                        @if (count($errors) > 0)
                        <div class="alert alert-success alert-dismissable">
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                                <ul>
                                    @foreach ($errors->all() as $error)
                                        <li>{{ $error }}</li>
                                    @endforeach
                                </ul>
                            </div>   
                        @endif
                        @if (session('error'))
                        <div class="alert alert-success alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                            <ul>
                                    <li>{{ session('error') }}</li>
                            </ul>
                        </div>   
                        @endif
                    </div>
                    <div class="m-b"></div>
                </div>
            </div>
            <div class="col-sm-5">
                <form method="post" action="{{url('/admin/login/dologin')}}">
                    <h4 class="no-margins">登录：</h4>
                    <p class="m-t-md">登录到后台首页</p>
                    <input type="text" name="username" class="form-control uname" placeholder="用户名" value="{{ old('username') }}">
                    <input type="password" name="password" class="form-control pword m-b" placeholder="密码" value="{{ old('password') }}">
                    {{csrf_field()}}
                    <button class="btn btn-success btn-block">登录</button>
                </form>
            </div>
        </div>
</body>

</html>